import request from '@/utils/request'

// 查询菜单权限列表
export function listAuth(query) {
  return request({
    url: '/authMenuAuth/list',
    method: 'get',
    params: query
  })
}

export function getListBySysId(query) {
  return request({
    url: '/authMenuAuth/getListBySysId',
    method: 'get',
    params: query
  })
}


// 查询菜单权限详细
export function getAuth(id) {
  return request({
    url: '/authMenuAuth/' + id,
    method: 'get'
  })
}

// 新增菜单权限
export function addAuth(data) {
  return request({
    url: '/authMenuAuth',
    method: 'post',
    data: data
  })
}

// 修改菜单权限
export function updateAuth(data) {
  return request({
    url: '/authMenuAuth',
    method: 'put',
    data: data
  })
}

// 删除菜单权限
export function delAuth(id) {
  return request({
    url: '/authMenuAuth/' + id,
    method: 'delete'
  })
}
